package com.symaster.common.test.pid;

public class TemperatureController {
    private PIDController controller;
    private double currentTemperature;
    private double targetTemperature;

    public TemperatureController(double targetTemperature, double kp, double ki, double kd) {
        this.targetTemperature = targetTemperature;
        this.controller = new PIDController(kp, ki, kd);
        this.currentTemperature = 0; // Initial temperature is 0. You may need to adjust this based on your system.
    }

    public void heat() { // Increases the temperature.
        currentTemperature += 1; // This is a simple example, so we are just incrementing the temperature. You may need to use a more complex model for your system.
    }

    public void cool() { // Decreases the temperature.
        currentTemperature -= 1; // This is a simple example, so we are just decrementing the temperature. You may need to use a more complex model for your system.
    }

    public double getCurrentTemperature() { return currentTemperature; }
}